//
//  CustomImageAndLabel.m
//  225视听百科
//
//  Created by 张元阳(10) on 14-12-27.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "CustomImageAndLabel.h"

@implementation CustomImageAndLabel
- (void)dealloc
{
    [_imageV release];
    [_label release];
    [super dealloc];
}
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.imageV = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, frame.size.width / 3, frame.size.height)];
        [self addSubview:_imageV];
        [_imageV release];
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(_imageV.frame.size.width, 0, frame.size.width * 2 / 3, frame.size.height)];
        _label.backgroundColor = [UIColor lightGrayColor];
        [self addSubview:_label];
        [_label release];
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
